<?php


include_once "BlM/Vprd.php";

class PrdIni
{
	public static $_prd = array();

	public static function GetPrdLst() {
		$prd = new Vprd();
		$recset = $prd->findPrd();
                foreach((array) $recset as $un_obj) {
                    $tmp_tab = (array) $un_obj;
                    self::$_prd[$tmp_tab['ID']] = array('key'=> $tmp_tab['ID'],'value'=>$tmp_tab['LIBELLE']);
                }
		return self::$_prd;
	}
	
	/*
	
    public function getlist($dom){
    	$recset = $this->findlist($dom);
    	$list = array();
        foreach((array) $recset as $un_obj) {
            $tmp_tab = (array) $un_obj;
            $list[$tmp_tab['ID']] = array('key'=> $tmp_tab['ID'],'value'=>$tmp_tab['LIBELLE']);
        }
        return $list;
    }
    */

}
?>